<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 关于建华模块
 */

class About extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 基础配置
     */
    public function config(\app\common\model\AboutconfigModel $AboutconfigModel)
    {
        $data = $AboutconfigModel->getConfigInfo();
        $this->error($data['msg'], $data['data'], $data['code']);
    }

    /**
     * 芝麻油博物馆
     * @ApiTitle    (芝麻油博物馆)
     * @ApiMethod   (GET)
     * @ApiRoute    (/api/about/getMuseumList)
     * @ApiParams   (name="mold", type="int", required=true, description="类型:1=一楼,2=二楼")
     */
    public function getMuseumList(\app\common\model\MuseumModel $MuseumModel)
    {
        $mold = $this->request->request('mold','1');
        $data = $MuseumModel->getList($mold);
        $this->error($data['msg'], $data['data'], $data['code']);
    }

    /**
     * 人群健康产品
     * @ApiTitle    (人群健康产品)
     * @ApiMethod   (GET)
     * @ApiRoute    (/api/about/getPopulationHealthProductsList)
     */
    public function getPopulationHealthProductsList(\app\common\model\PopulationHealthProductsModel $PopulationHealthProductsModel)
    {
        $data = $PopulationHealthProductsModel->getInfo();
        $this->error($data['msg'], $data['data'], $data['code']);
    }

}